package com.xszx.dao;

import com.xszx.bean.Address;

import java.util.List;

public interface AddressDao {
    //添加收货地址
    void addAddress(Address address);
    //修改收货地址
    void updateAddress(Address address);
    //删除收货地址
    void deleteAddress(Integer id);
    //查看收货地址列表
    List<Address> getAllAddress(Integer userId);
    //根据id查看地址
    Address getAddress(Integer id);
    //设置默认值
    void updateAddressFirst(Integer id, Integer userId);
}
